-
Notifications
You must be signed in to change notification settings - Fork 6k
[Impeller] fix initial layout for loadOp load and incorrect usage of host visible textures. #56148
[Impeller] fix initial layout for loadOp load and incorrect usage of host visible textures. #56148
Conversation
|
|
||
| auto texture_descriptor = impeller::TextureDescriptor{}; | ||
| texture_descriptor.storage_mode = impeller::StorageMode::kHostVisible; | ||
| impeller::TextureDescriptor texture_descriptor; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not really related but this was also tripping validation errors for me, because molten vk actually creates the linear texture but then we can't actually do anything with it.
| #include "impeller/core/formats.h" | ||
| #include "impeller/renderer/backend/vulkan/context_vk.h" | ||
| #include "impeller/renderer/backend/vulkan/vk.h" | ||
| #include "vulkan/vulkan_enums.hpp" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please include vk.h directly instead of this because it contains some defines that can mess up usage.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
|
auto label is removed for flutter/engine/56148, due to - The status or check suite Mac mac_unopt has failed. Please fix the issues identified (or deflake) before re-applying this label. |
Both changes were required to get playground tests validation free with moltenvk. becuase an initial state of undefined means "I don't care what was in this texture before" but that doesn't make sense if we're setting "kLoad" since that explicitly asks vulkan to load the previous contents.
Fixes flutter/flutter#157557